function Fixed(S: Single): TFixed; overload;
function Fixed(I: Integer): TFixed; overload;
A couple of TFixed constructors.
In case you don't want your program to loose time on extra function call, you can use another method of converting Integer to TFixed:
var
FX: TFixed;
begin
FX := IntVal shl 16;
...
end;
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024